// 使用type定义类型别名  type 别名 = 真正的类型
// 作用：可以把多个地方都用到的类型，抽取成一个类型别名，达到复用的效果
// 类型别名建议首字母大写
type CustomArray = Array<string | number | boolean>

let array1: CustomArray = ['aaa', 12, true]

let array2: CustomArray = ['bbb', 13, false]

let array3: CustomArray = ['ccc', 14, true]

console.log(array1)

type Xxx = string | boolean
let aaa: Xxx = 'a'

let bbb: Xxx = 'b'

let ccc: Xxx = 'c'

console.log(aaa)

export {}
